﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using DevComponents.DotNetBar;

namespace Kugar.UI.WinForm.Print
{
    public partial class frmModulePrintFormatSaving : Office2007Form
    {
        public frmModulePrintFormatSaving()
        {
            InitializeComponent();
        }

        private void btnOK_Click(object sender, EventArgs e)
        {
            if (string.IsNullOrWhiteSpace(txtFormatName.Text))
            {
                MessageBox.Show("请输入打印格式的保存名称");
                return;
            }

            this.DialogResult=DialogResult.OK;

        }

        public string FormatName
        {
            get { return txtFormatName.Text; }
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.Cancel;
        }
    }
}
